(function () {
    var app = angular.module('KtotApp', ['ngRoute','angular.filter', 'LocalStorageModule']);

    app.config(['$routeProvider', 'localStorageServiceProvider', function ($routeProvider, localStorageServiceProvider) {
        $routeProvider
            .when('/', {
                templateUrl: Utils.getPage('home'),
                controller: 'WorkController',
                controllerAs: 'workCtrl'
            })
            .when('/work', {
                templateUrl: Utils.getPage('work'),
                controller: 'WorkController',
                controllerAs: 'workCtrl'
            })
            .when('/side-menu', {
                templateUrl: Utils.getPage('side-menu'),
                controller: 'SideMenuController',
                controllerAs: 'sideMenuCtrl'
            })
            .when('/project/edit/:id', {
                templateUrl: Utils.getPage('project/edit'),
                controller: 'ProjectController',
                controllerAs: 'projectCtrl'
            });
            //.when('/edit-task/:taskId', {
            //    templateUrl: 'views/pages/edit-task.html',
            //    controller: 'EditTaskController',
            //    controllerAs: 'editTaskCtrl'
        //});

        localStorageServiceProvider.setPrefix('Ktot');
    }]);
})();